package com.yenlien.traceyun.plant.entity;

import com.yenlien.traceyun.business.entity.TraceScanEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * 投入品
 *
 * @author maybe
 * @date 2020年7月24日
 */
@Entity
@Table(name = "t_plant_inputs")
//@RelationTrace(relationClass = FarmInputs.class, mainField = "inputsId", relationField = "farmId")
//@Trace(appName = "plant",stepName = "inputs", parentStepName = "farm", order = 3, ended = false)
public class Inputs extends TraceScanEntity {


    private String buyer;       // 采购人





    // 来源为购买时须填的参数
    private String price;   // 单价   元/kg
    private String totalPrice;   // 总价   元/kg
    private String orderNo;   //  订单号
    // 结束

    // 类型为劳务时须填的参数
    private String laborBreedName;   // 品名
    private String laborNum;    // 劳务人数
    private String laborPrice;  //劳务单价
    private String laborTotalPrice;  //劳务总价
    // 结束

    @Column
    private String type;            //类别   农药   肥料  其他   劳务   种苗
    @Column
    private String source;            //来源



    @Column
    private String inputsName;        //品名
    @Column
    private String supplyId;        //供应商ID
    @Column
    private String supplyName;        //供应商名称
    @Column
    private String userName;        //联系人
    @Column
    private String phone;            //联系电话
    @Column
    private String inputsImg;        //投入品图片
    @Column
    private String producedTime;    //生产日期
    @Column
    private String expirationDate;    //保质期
    @Column
    private String buyTime;            //购买日期
    @Column
    private String spec;            //规格
    @Column
    private String specUnits;        //规格单位
    @Column
    private String totalNumber;        //总量
    @Column
    private String units;            //单位
    @Column
    private String surplusNumber;    //剩余量
    @Column
    private String remark;            //备注

    private String paySituation;            //付款情况
    private String contract;            //合同

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPaySituation() {
        return paySituation;
    }

    public void setPaySituation(String paySituation) {
        this.paySituation = paySituation;
    }

    public String getContract() {
        return contract;
    }

    public void setContract(String contract) {
        this.contract = contract;
    }

    @Column(name = "is_delete")
    private boolean isDelete; //是否删除

    public String getBuyer() {
        return buyer;
    }

    public void setBuyer(String buyer) {
        this.buyer = buyer;
    }

    @Transient
    private List<InputsLog> list;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getInputsName() {
        return inputsName;
    }

    public void setInputsName(String inputsName) {
        this.inputsName = inputsName;
    }

    public String getSupplyId() {
        return supplyId;
    }

    public String getTotalPrice() {
        return totalPrice;
    }

    public String getLaborBreedName() {
        return laborBreedName;
    }

    public void setLaborBreedName(String laborBreedName) {
        this.laborBreedName = laborBreedName;
    }

    public String getLaborNum() {
        return laborNum;
    }

    public void setLaborNum(String laborNum) {
        this.laborNum = laborNum;
    }

    public String getLaborPrice() {
        return laborPrice;
    }

    public void setLaborPrice(String laborPrice) {
        this.laborPrice = laborPrice;
    }

    public String getLaborTotalPrice() {
        return laborTotalPrice;
    }

    public void setLaborTotalPrice(String laborTotalPrice) {
        this.laborTotalPrice = laborTotalPrice;
    }

    public void setTotalPrice(String totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public void setSupplyId(String supplyId) {
        this.supplyId = supplyId;
    }

    public String getSupplyName() {
        return supplyName;
    }

    public void setSupplyName(String supplyName) {
        this.supplyName = supplyName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getInputsImg() {
        return inputsImg;
    }

    public void setInputsImg(String inputsImg) {
        this.inputsImg = inputsImg;
    }

    public String getProducedTime() {
        return producedTime;
    }

    public void setProducedTime(String producedTime) {
        this.producedTime = producedTime;
    }

    public String getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(String expirationDate) {
        this.expirationDate = expirationDate;
    }

    public String getBuyTime() {
        return buyTime;
    }

    public void setBuyTime(String buyTime) {
        this.buyTime = buyTime;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getSpecUnits() {
        return specUnits;
    }

    public void setSpecUnits(String specUnits) {
        this.specUnits = specUnits;
    }

    public String getTotalNumber() {
        return totalNumber;
    }

    public void setTotalNumber(String totalNumber) {
        this.totalNumber = totalNumber;
    }

    public String getUnits() {
        return units;
    }

    public void setUnits(String units) {
        this.units = units;
    }

    public String getSurplusNumber() {
        return surplusNumber;
    }

    public void setSurplusNumber(String surplusNumber) {
        this.surplusNumber = surplusNumber;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<InputsLog> getList() {
        return list;
    }

    public void setList(List<InputsLog> list) {
        this.list = list;
    }

    public boolean isDelete() {
        return isDelete;
    }

    public void setDelete(boolean delete) {
        isDelete = delete;
    }
}
